Force native windows for all windows used with input events
authorAlexander Larsson <alexl@redhat.com>
Fri, 16 Jan 2009 13:01:34 +0000 (14:01 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:18 +0000 (10:15 +0200)
gdk/x11/gdkinput.c

index 87fe45cc04a45858c91348e8dc37a279cda7ce82..95a301d24d2e37794dd139bc6efe00179b486656 100644 (file)
@@ -324,6 +324,11 @@ _gdk_input_window_find(GdkWindow *window)
   GList *tmp_list;
   GdkDisplayX11 *display_x11 = GDK_DISPLAY_X11 (GDK_WINDOW_DISPLAY (window));
 
+  /* Ensure we have a native window, or the input stuff won't work.
+     Its possible we could emulate this also, but at least this should make
+     it work. */
+  gdk_window_set_has_native (window, TRUE);
+
   for (tmp_list=display_x11->input_windows; tmp_list; tmp_list=tmp_list->next)
     if (((GdkInputWindow *)(tmp_list->data))->window == window)
       return (GdkInputWindow *)(tmp_list->data);